import request from '@/utils/request';
import { AxiosPromise } from 'axios';


/**
 * 更新switch
 *
 * @param data
 */
export function updateStatusPromotion(data: any) {
  return request({
    url: '/api/sms/flashpromotion/updateStatus',
    method: 'post',
    data
  });
}

/**
 * 修改
 *
 * @param data
 */
export function updateFlashPromotion(data: any) {
  return request({
    url: '/api/sms/flashpromotion/update',
    method: 'post',
    data
  });
}

/**
 * 添加
 *
 * @param data
 */
export function addFlashPromotion(data: any) {
  return request({
    url: '/api/sms/flashpromotion/add',
    method: 'post',
    data
  });
}


/**
 * 获取List
 *
 * @param data
 */
export function getFlashPromotionList(data: any) {
  return request({
    url: '/api/sms/flashpromotion/list',
    method: 'post',
    data
  });
}

/**
 * 获取详情
 *
 * @param data
 */
export function getFlashPromotionDetail(data: any) {
  return request({
    url: '/api/sms/flashpromotion/detail',
    method: 'post',
    data
  });
}


/**
 * 删除List
 *
 * @param data
 */
export function deleteFlashPromotion(data: any) {
  return request({
    url: '/api/sms/flashpromotion/delete',
    method: 'post',
    data
  });
}



